home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Info-Mac 4
/
Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso
/
Science
/
RLaB
/
help
/
class
< prev
next >
Wrap
Text File
|
1994-04-25
|
455b
|
28 lines
class:
Syntax: class ( A )
Class returns a string which identifies the type of the object
that A represents. Valid classes are:
num
string
list
function
It is often useful to:
if(class(m) == "num")
{
// Perform numerical computation on m
}
The class of a variable can also be determined by using the
class member reference (except for LISTs), like:
> zeros.class
function
See Also: show, type